import React from 'react';
import {render} from 'react-dom';
import axios from 'axios';
require('es6-promise').polyfill();
require('./global/common.less');
class APP extends React.Component{
    constructor(props){
        super(props);
    }
    componentDidMount(){
        let detail = "/api/Page.php?init=has_init";
        axios.get(detail).then(function(res){
            console.log(res);
        }).catch(function(err){
            console.log(err);
        });
        document.title = '梅超';
    }
    render(){
        return (
            <div className="demo">
                asdasd
            </div>
        )
    }
}
render((
    <APP />
),document.getElementById('content'));